package com.sinocare.project.common.entity;

import java.math.BigInteger;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 中国行政地区表(Cnarea2018)表实体类
 *
 * @author makejava
 * @since 2021-12-20 18:51:14
 */
@Data
@SuppressWarnings("serial")
@TableName(value = "cnarea_2018")
public class Cnarea2018 extends Model<Cnarea2018> {
    //主键
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //层级
    private Integer level;
    //父级行政代码
    private BigInteger parentCode;
    //行政代码
    private BigInteger areaCode;
    //邮政编码
    private Integer zipCode;
    //区号
    private String cityCode;
    //名称
    private String name;
    //简称
    private String shortName;
    //组合名
    private String mergerName;
    //拼音
    private String pinyin;
    //经度
    private Double lng;
    //纬度
    private Double lat;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

